package com.aaron.demo1.test.megaeyes.model;

/**
 * 全球眼云台PTZ控制参数（上下左右转动&画面缩放）
 * @author liurong
 * @date 2021/7/15 17:19
 * @version: v1.4.3 beta
 */
public class PTZControl {

    /**
     * 左右移动 x:水平控制速度相对值(-1, 1) x>0为右转，反之左转
     */
    private double pan;

    /**
     * 上下移动 y:垂直控制速度相对值(-1, 1) y>0向上转，反之向下转
     */
    private double tilt;

    /**
     * 画面缩放 z:变倍控制速度相对值(-1, 1)zoom>0为放大，反之缩小
     */
    private double zoom;

    /**
     * 持续时间：类型int，选填。持续时间，单位毫秒，默认100毫秒。只对部分设备有效，要想确保云台停止，发送 pan, tilt,zoom都为0的请求。
     */
    private int duration;

    public double getPan() {
        return pan;
    }

    public void setPan(double pan) {
        this.pan = pan;
    }

    public double getTilt() {
        return tilt;
    }

    public void setTilt(double tilt) {
        this.tilt = tilt;
    }

    public double getZoom() {
        return zoom;
    }

    public void setZoom(double zoom) {
        this.zoom = zoom;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    @Override
    public String toString() {
        return "PTZControl{" +
                "pan=" + pan +
                ", tilt=" + tilt +
                ", zoom=" + zoom +
                ", duration=" + duration +
                '}';
    }
}
